package ${packageName}.param;

<#list paramImportList as import>
import ${import};
</#list>

/**
 * ${functionName}对象 ${tableName}
 * 
 * @author ${author}
 * @date ${datetime}
 */
public class ${ClassName}Param extends BaseParam{

<#if table.simpleTree> 
    /** 要排除的id */
    private String neId;
</#if>
<#list columns as column>
	<#if column.query && !column.baseParamColumn> 
<#-- 时间类型的查询字段-开始 -->
		<#if column.htmlType == 'date' || column.htmlType == "datetime"> 
			<#if column.queryType == 'BETWEEN'> 
    /** ${column.javaFieldDesc}开始  */
    private String ${column.javaField}Begin;
    
    /** ${column.javaFieldDesc}结束  */
    private String ${column.javaField}End;
   
    		<#else>
    /** ${column.columnComment} */
    private ${column.javaType} ${column.javaField};
    
    		</#if>
<#-- 时间类型的查询字段-结束 -->
		<#elseif column.queryType == 'BETWEEN'> 
    /** ${column.javaFieldDesc}开始 */
    private ${column.javaType} ${column.javaField}Begin;
    
    /** ${column.javaFieldDesc}结束 */
    private ${column.javaType} ${column.javaField}End;
    
    	<#elseif column.queryType == 'LIKE'> 
     /** ${column.javaFieldDesc} */
    private String ${column.javaField};
    
     /** ${column.javaFieldDesc}模糊查询关键字  */
    private String ${column.javaField}Key;
    
    	<#else>
    /** ${column.columnComment} */
    private ${column.javaType} ${column.javaField};
    
    	</#if>
    </#if>
</#list>

<#-- getter和setter -->
<#if table.simpleTree> 
    public String getNeId() {
        return neId;
    }

    public void setNeId(String neId) {
        this.neId = neId;
    } 
	
</#if>
<#list columns as column>
	<#if column.query && !column.baseParamColumn> 
<#-- 时间类型的查询字段getter和setter-开始 -->
		<#if column.htmlType == 'date' || column.htmlType == "datetime"> 
			<#if column.queryType == 'BETWEEN'> 
    public void set${column.attrName}Begin(String ${column.javaField}Begin) {
        this.${column.javaField}Begin = ${column.javaField}Begin;
    }

    public String get${column.attrName}Begin() {
        return ${column.javaField}Begin;
    }
    
    public void set${column.attrName}End(String ${column.javaField}End) {
        this.${column.javaField}End = ${column.javaField}End;
    }

    public String get${column.attrName}End() {
        return ${column.javaField}End;
    }
    
    		<#else>
    public void set${column.attrName}(String ${column.javaField}) {
        this.${column.javaField} = ${column.javaField};
    }

    public String get${column.attrName}() {
        return ${column.javaField};
    }  
    
    		</#if>
<#-- 时间类型的查询字段getter和setter-结束 -->
		<#elseif column.queryType == 'BETWEEN'> 
    public void set${column.attrName}Begin(${column.javaType} ${column.javaField}Begin) {
        this.${column.javaField}Begin = ${column.javaField}Begin;
    }

    public ${column.javaType} get${column.attrName}Begin() {
        return ${column.javaField}Begin;
    }
    
    public void set${column.attrName}End(${column.javaType} ${column.javaField}End) {
        this.${column.javaField}End = ${column.javaField}End;
    }

    public ${column.javaType} get${column.attrName}End() {
        return ${column.javaField}End;
    }
    
    	<#elseif column.queryType == 'LIKE'> 
    public void set${column.attrName}(String ${column.javaField}) {
        this.${column.javaField} = ${column.javaField};
    }

    public String get${column.attrName}() {
        return ${column.javaField};
    }
    
    public void set${column.attrName}Key(String ${column.javaField}Key) {
        this.${column.javaField}Key = ${column.javaField}Key;
    }

    public String get${column.attrName}Key() {
        return ${column.javaField}Key;
    }
    
    	<#else>
    public void set${column.attrName}(${column.javaType} ${column.javaField}) {
        this.${column.javaField} = ${column.javaField};
    }

    public ${column.javaType} get${column.attrName}() {
        return ${column.javaField};
    }  
    
    	</#if>
    </#if>
</#list>

}
